<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>区域转换申请</title>
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
<link rel="shortcut icon" href="/favicon.ico">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">

<link rel="stylesheet"
	href="//g.alicdn.com/msui/sm/0.6.2/css/sm.min.css">
<link rel="stylesheet"
	href="//g.alicdn.com/msui/sm/0.6.2/css/sm-extend.min.css">
	<jsp:include page="../inc/head.jsp" />
</head>
<body>
<jsp:include page="../inc/header.jsp" />
<div class="am-cf admin-main">
<!-- content start -->
<div class="admin-content">
  <div class="admin-content-body">
  
  <form action="${basePath}/${sessionScope.user.role_id}/manageregion.do">
  

    <div class="am-cf am-padding am-padding-bottom-0">
      <div class="am-fl am-cf">
        <strong class="am-text-primary am-text-lg">区域转换申请</strong> /
        <small>ModifyRegion</small>
      </div>
    </div>

    <hr>

    <div class="am-tabs am-margin" data-am-tabs>
      <ul class="am-tabs-nav am-nav am-nav-tabs">
        <li class="am-active"><a href="#tab1">基本信息</a></li>
      </ul>

      <div class="am-tabs-bd am-tabs-bd-ofv">
        <div class="am-tab-panel am-fade am-in am-active" id="tab1">
          

        <div class="am-g am-margin-top">
              <div class="am-u-sm-4 am-u-md-2 am-text-right">
            姓名：
              </div>
              <div class="am-u-sm-8 am-u-md-4 am-u-end col-end">
               <span>${userSession.realName}</span>
              </div>
        </div>

    	<div class="am-g am-margin-top">
              <div class="am-u-sm-4 am-u-md-2 am-text-right">
                手机号：
              </div>
              <div class="am-u-sm-8 am-u-md-4 am-u-end col-end">
                <span>${userSession.phonenumber}</span>
              </div>
       </div>

          <div class="am-g am-margin-top">
              <div class="am-u-sm-4 am-u-md-2 am-text-right">
                角色：
              </div>
              <div class="am-u-sm-8 am-u-md-4 am-u-end col-end">
                <span>${userSession.roleName}</span>
              </div>
            </div>

            <div class="am-g am-margin-top">
              <div class="am-u-sm-4 am-u-md-2 am-text-right">
              所属区域
              </div>
              <div class="am-u-sm-8 am-u-md-4 am-u-end col-end">
                <span>${regionName}</span>
              </div>
            </div>
            
            <div class="am-g am-margin-top">
              <input type="text" name="operate" value="changeRegion" hidden="true">
            </div>
           <div class="am-g am-margin-top">
            <div class="am-u-sm-4 am-u-md-2 am-text-right">选择区域</div>
            <div class="am-u-sm-8 am-u-md-10">
              <select id="regionId" name="regionId" data-am-selected="{searchBox: 1}">
               
              </select>
            </div>
          </div>
        </div>
      </div>
    </div>

    <div class="am-margin">
      <input type="submit" class="am-btn am-btn-primary am-btn-xs">
      <input type="reset" class="am-btn am-btn-primary am-btn-xs">
    </div>
</form>
  </div>


</div>
<!-- content end -->

</div>

<!--[if lt IE 9]>
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="assets/js/amazeui.ie8polyfill.min.js"></script>
<![endif]-->

<!--[if (gte IE 9)|!(IE)]><!-->
<script src="assets/js/jquery.min.js"></script>
<!--<![endif]-->
<script src="assets/js/amazeui.min.js"></script>
<script src="assets/js/app.js"></script>

<script type="text/javascript">


var roleId="${sessionScope.user.role_id}";
var mbasePath ="${basePath}";

	function getRegion(){
		$.ajax({
			type:"post",
			dataType:"json",
			cache:false,
			data:{},
			url:mbasePath+"ajaxgetregion.do",
			success:function(data){
			
				var str="";
				for(var index=0;index<data.length;index++){
					str = str +"<option value = "+data[index].id+">"+data[index].name+"</option>";
				}
				
				$("#regionId").html(str);
				
			}
		});
	}
	
	window.onload=getRegion();
	
	//window.setTimeout(function(){getRegion()} ,10)
	
	
</script>

</body>
</html>

